package com.lfx.concurrent;

import java.util.concurrent.Semaphore;

/**
 * @author 李逢喜
 * create 2021/8/2
 */
public class Main {


    public static void main(String[] args) {
        Semaphore semaphore=new Semaphore(2,true);
        for (int i = 0; i < 5; i++) {
            new MyThread(semaphore,"学生"+i).start();
        }
    }
}
